import { createRouter, createWebHistory } from 'vue-router'

const homeRouter: any = [
  {
    path: '/home/brain',
    name: 'brain',
    component: () => import('../views/home/Brain.vue'),
   

  },
  {
    path: '/home/take',
    name: 'TaKe',
    component: () => import('../views/home/TaKe.vue'),
       
  },
  {
    path: '/home/security',
    name: 'Security',
    component: () => import('../views/home/Security.vue'),
     
  },
  {
    path: '/home/equipment',
    name: 'equipment',
    component: () => import('../views/home/equipment.vue'),
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home/brain'
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('../views/home.vue'),
      children: homeRouter
    }
  ]
})

export default router
